import { createRouter, createWebHashHistory } from 'vue-router'
import WatchView from '../views/WatchView.vue'
import WatchView2 from '../views/WatchView2.vue'
import IndexView from '../views/watch/IndexView.vue'
import IndexView2 from '../views/watch2/IndexView2.vue'
import NewView from '../views/watch/NewView.vue'
import NewView2 from '../views/watch2/NewView2.vue'
import ContartView from '../views/watch/ContartView.vue'
import ContartView2 from '../views/watch2/ContartView2.vue'
import AboutView from '../views/watch/AboutView.vue'
import AboutView2 from '../views/watch2/AboutView2.vue'
import SmartwatchView from '../views/watch/SmartwatchView.vue'
import SmartwatchView2 from '../views/watch2/SmartwatchView2.vue'
import CustomizaTion from '../views/watch/CustomizaTion.vue'
import CustomizaTion2 from '../views/watch2/CustomizaTion2.vue'
import KnowView from '../views/watch/KnowView.vue'
import KnowView2 from '../views/watch2/KnowView2.vue'
import braceletView from '../views/watch/braceletView.vue'
import braceletView2 from '../views/watch2/braceletView2.vue'
import AllSmartwatch from '../views/watch/AllSmartwatch.vue'
import AllSmartwatch2 from '../views/watch2/AllSmartwatch2.vue'
const routes = [
  {
    path: '/',
    redirect: '/watch'
  },
  {
    path: '/watch',
    name: 'watch',
    component: WatchView,
    children: [
      { path: '/watch', redirect: '/watch/index' },
      { path: '/watch/index', name: 'index', component: IndexView },
      { path: '/watch/new', name: 'new', component: NewView },
      { path: '/watch/contart', name: 'contart', component: ContartView },
      { path: '/watch/about', name: 'about', component: AboutView },
      { path: '/watch/smartwatch', name: 'smartwatch', component: SmartwatchView },
      { path: '/watch/know', name: 'know', component: KnowView },
      { path: '/watch/customization', name: 'customization', component: CustomizaTion },
      { path: '/watch/bracelet', name: 'bracelet', component: braceletView },
      { path: '/watch/allsmartwatch', name: 'allsmartwatch', component: AllSmartwatch }

    ]
  },
  {
    path: '/watch2',
    name: 'watch2',
    component: WatchView2,
    children: [
      { path: '/watch2', redirect: '/watch2/index2' },
      { path: '/watch2/index2', name: 'index2', component: IndexView2 },
      { path: '/watch2/new2', name: 'new2', component: NewView2 },
      { path: '/watch2/contart2', name: 'contart2', component: ContartView2 },
      { path: '/watch2/about2', name: 'about2', component: AboutView2 },
      { path: '/watch2/smartwatch2', name: 'smartwatch2', component: SmartwatchView2 },
      { path: '/watch2/know2', name: 'know2', component: KnowView2 },
      { path: '/watch2/customization2', name: 'customization2', component: CustomizaTion2 },
      { path: '/watch2/bracelet2', name: 'bracelet2', component: braceletView2 },
      { path: '/watch2/allsmartwatch2', name: 'allsmartwatch2', component: AllSmartwatch2 }

    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
